package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

//AddDictionaryReq 新增字典
type AddDictionaryReq struct {
	g.Meta `path:"/dictionary/add" tags:"字典模块" method:"post" summary:"新增字典"`
	*model.DictionaryInfo
}

//UpdateDictionaryReq 更新字典
type UpdateDictionaryReq struct {
	g.Meta `path:"/dictionary/update" tags:"字典模块" method:"post" summary:"编辑字典"`
	*model.DictionaryInfoAndIdReq
}

// DeleteDictionaryReq 删除字典
type DeleteDictionaryReq struct {
	g.Meta `path:"/dictionary/delete" tags:"字典模块" method:"delete" summary:"删除字典"`
	*model.DictionaryIdRes
}

// SearchDictionaryListReq 字典列表
type SearchDictionaryListReq struct {
	g.Meta `path:"/dictionary/list" tags:"字典模块" method:"get" summary:"字典列表"`
	*model.SearchDictionaryListReq
}

//SearchDictionaryOneReq 通过id获取字典
type SearchDictionaryOneReq struct {
	g.Meta `path:"/dictionary/one" tags:"字典模块" method:"get" summary:"通过id获取字典"`
	*model.DictionaryIdRes
}
